<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:text-align="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>登录慧科系统</title>
    <meta name="description" content="慧科后台管理框架">
    <link href="./css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"  type = "text/css"/>
    <link href="./css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"  type = "text/css"/>
    <link href="./css/style.css" th:href="@{/css/style.css}" rel="stylesheet"  type = "text/css"/>
    <link href="./css/login.min.css" th:href="@{/css/login.min.css}" rel="stylesheet"  type = "text/css"/>
    <link href="./ruoyi/css/ry-ui.css" th:href="@{/ruoyi/css/ry-ui.css?v=4.2.0}" rel="stylesheet" type = "text/css"/>
    <!-- 360浏览器急速模式 -->
    <meta name="renderer" content="webkit">
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="shortcut icon" href="./favicon.ico" th:href="@{./favicon.ico}"/>
    <style type="text/css">label.error { position:inherit;  }</style>
    <script>
        if(window.top!==window.self){alert('未登录或登录超时。请重新登录');window.top.location=window.location};
    </script>
</head>
<body class="signin">
<div class="signinpanel">
    <div class="row">
        <div class="col-sm-7">
            <div class="signin-info">
                <div class="logopanel m-b">
                    <h1><img alt="[ 慧科 ]" src="./img/logo.svg" th:src="@{./img/logo.svg}"></h1>
                </div>
                <div class="m-b"></div>
                <h4>欢迎使用 <strong>慧科 后台管理系统</strong></h4>
            </div>
        </div>
        <div class="col-sm-5" id="text">
            <form  class="form-signin" th:action="@{/login}" method="post">
                <h4 class="no-margins">登录：</h4>
                <input type="text"     name="username" class="form-control uname"     placeholder="用户名"     />
                <input type="password" name="password" class="form-control pword"     placeholder="密码"    />
                <div class="checkbox-custom" th:classappend="${captchaEnabled==false} ? 'm-t'">
                    <input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住我</label>
                </div>
                <button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录，请稍后...">登录</button>
                <a  href="#" id="message" onclick="msg1()">短信验证</a>
            </form>
        </div>
        <div class="col-sm-5" id="text2" style="display: none;">
            <form class="form-signin" th:action="@{/sms/login}" method="post">
                <h4 class="no-margins">短信验证：</h4>
                <input type="text"     name="mobile" class="form-control uname"     placeholder="用户名手机号"     />
<!--                <button class="btn btn-success btn-block btn-xs" id="bt01" >发送</button>-->
<!--                href="/sms/code?mobile=102"-->
               <p> <a  href="#" id="fsmessage" onclick="fsmessage()"/>点击发送</p>
                <input type="text"  name="smsCode" class="form-control uname"     placeholder="输入验证码"     />

                <button class="btn btn-success btn-block" id="bt02" data-loading2="正在验证登录，请稍后...">登录</button>
                <a  href="#" id="message1" onclick="msg1()">账号密码登录</a>
            </form>
        </div>
    </div>
    <div class="signup-footer">
        <div class="pull-left">
            &copy; 2019 All Rights Reserved. Huike <br>
        </div>
    </div>
</div>
<script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]]; </script>
<!-- 全局js -->
<script src="./js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script src="./js/bootstrap.min.js" th:src="@{/js/bootstrap.min.js}"></script>
<!--验证插件-->
<script src="./ajax/libs/validate/jquery.validate.min.js" th:src="@{/ajax/libs/validate/jquery.validate.min.js}" type="text/javascript"></script>
<script src="./ajax/libs/validate/messages_zh.min.js" th:src="@{/ajax/libs/validate/messages_zh.min.js}" type="text/javascript" ></script>
<script src="./ajax/libs/layer/layer.min.js" th:src="@{/ajax/libs/layer/layer.min.js}" type="text/javascript"></script>
<script src="./ajax/libs/blockUI/jquery.blockUI.js" th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}" type="text/javascript"></script>
<script src="./ruoyi/js/ry-ui.js" th:src="@{/ruoyi/js/ry-ui.js?v=4.2.0}" type="text/javascript"></script>
<script src="./ruoyi/login.js" th:src="@{/ruoyi/login.js}" type="text/javascript"></script>
</body>
</html>
